//先导入Vue项目包
import Vue from 'vue'
// 导入Vuex项目包
import Vuex from 'vuex'
import moduleCart from '@/store/cart.js'
import moduleUser from '@/store/user.js'
//安装Vuex
Vue.use(Vuex)
const store = new Vuex.Store({
	modules: {
		'm_cart':moduleCart,
		'm_user':moduleUser
	}
})
//暴露
export default store